﻿<dx:DXWindow xmlns:my="clr-namespace:DevExpress.Xpf.Grid;assembly=DevExpress.Xpf.Grid.v11.1"  
        x:Class="ChatApp.Client.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:local="clr-namespace:ChatApp.Client"
		xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
		xmlns:dxb="http://schemas.devexpress.com/winfx/2008/xaml/bars"
		xmlns:dxd="http://schemas.devexpress.com/winfx/2008/xaml/docking"
		xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
        Title="DXWpfApplication" dx:ThemeManager.ThemeName="Office2007Blue"
        Closed="DXWindow_Closed" xmlns:dxlc="http://schemas.devexpress.com/winfx/2008/xaml/layoutcontrol" 
        WindowStyle="None" mc:Ignorable="d" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
        xmlns:ve="clr-namespace:DevExpress.Xpf.Docking.VisualElements;assembly=DevExpress.Xpf.Docking.v11.1"
        Height="550" Width="800">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="25"></RowDefinition>
            <RowDefinition Height="450*"></RowDefinition>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="100*"></ColumnDefinition>
            <ColumnDefinition Width="Auto"></ColumnDefinition>
            <ColumnDefinition Width="200*"></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <Image Name="abc"/>
        <dxb:BarManager Name="barManager" VerticalAlignment="Top" Height="25" Grid.ColumnSpan="3" CreateStandardLayout="True">
            <dxb:BarManager.Categories>
                <dxb:BarManagerCategory Name="File" />
                <dxb:BarManagerCategory Name="Edit" />
                <dxb:BarManagerCategory Name="Help" />
                <dxb:BarManagerCategory Name="Built-in Menus" />
            </dxb:BarManager.Categories>
            <dxb:BarManager.Items>
                
                <dxb:BarButtonItem Name="bExit" ItemClick="bExit_ItemClick" CategoryName="File" Content="Logout" KeyGesture="Ctrl+X"/>

                <dxb:BarButtonItem Name="bHome" CategoryName="Help" Content="Developer Express on the Web"/>
                <dxb:BarButtonItem Name="bAbout" CategoryName="Help" Content="About"/>

                <dxb:BarSubItem Name="smFile" CategoryName="Built-in Menus" Content="File">
                    <dxb:BarSubItem.ItemLinks>
                        
                        <dxb:BarButtonItemLink BarItemName="bExit"/>
                    </dxb:BarSubItem.ItemLinks>
                </dxb:BarSubItem>
                <dxb:BarSubItem Name="smHelp" CategoryName="Built-in Menus" Content="Help">
                    <dxb:BarSubItem.ItemLinks>
                        <dxb:BarButtonItemLink BarItemName="bHome"/>
                        <dxb:BarItemLinkSeparator/>
                        <dxb:BarButtonItemLink BarItemName="bAbout"/>
                    </dxb:BarSubItem.ItemLinks>
                </dxb:BarSubItem>
            </dxb:BarManager.Items>
            <dxb:BarManager.Bars>
                <dxb:Bar Caption="MainMenu" x:Name="MainMenu" IsMainMenu="True" UseWholeRow="True">
                    <dxb:Bar.DockInfo>
                        <dxb:BarDockInfo ContainerType="Top"/>
                    </dxb:Bar.DockInfo>
                    <dxb:Bar.ItemLinks>
                        <dxb:BarSubItemLink BarItemName="smFile"/>
                        <dxb:BarSubItemLink BarItemName="smHelp"/>
                    </dxb:Bar.ItemLinks>
                </dxb:Bar>
            </dxb:BarManager.Bars>
        </dxb:BarManager>
        
        <dxd:DockLayoutManager Name="dockLayoutManagerMain" Grid.Column="2" Grid.Row="1" AllowDrop="False" 
                               DockItemClosed="dockLayoutManagerMain_DockItemClosed"
                               DockItemActivated="dockLayoutManagerMain_DockItemActivated">
            <dxd:LayoutGroup Name="layoutMain" AllowDrag="False" >
                <!--<dxd:TabbedGroup Name="tabGroupMain">
                    <dxd:LayoutPanel x:Name="MainPanel" ShowPinButton="False" Caption="UserName" >
                        <local:ucChat x:Name="ucChatControl"></local:ucChat>
                    </dxd:LayoutPanel>
                </dxd:TabbedGroup>-->
            </dxd:LayoutGroup>
        </dxd:DockLayoutManager>

        <local:ucListChat x:Name="ucListChatControl" Grid.Row="1"></local:ucListChat>
        <GridSplitter ResizeDirection="Columns" Grid.Column="1" Width="5" ResizeBehavior="PreviousAndNext"
                    Grid.Row="1" Background="Transparent"/>
    </Grid>
</dx:DXWindow>